/**
 * 
 */
package nl.boektrust.btsoep.shared.model;

/**
 * @author rao3
 *
 */
public enum ImageReferenceTypeCode {
	FRONTCOVER,BACKCOVER,UNDEFINED;
	
	public static int toMediaFileLinkTypeCode(ImageReferenceTypeCode code) {
		int returnCode = 0;
		switch (code) {
		case FRONTCOVER: returnCode = 25; break;
		case BACKCOVER: returnCode = 4; break;
		}
		return returnCode;
	}

	public int toMediaFileLinkTypeCode() {
		return ImageReferenceTypeCode.toMediaFileLinkTypeCode(this);
	}
}
